@extends('layouts.app')
@section('title', '登录')

@section('css')
    <link href="{{cdn('/assets/css/s/register.css')}}"      rel="stylesheet">
    <link href="{{cdn('/assets/css/s/register.css')}}"      rel="stylesheet">
@endsection

@section('content')
    <div class="fix-top"></div>
    <div class="div-mid" style="background-image: url('{{cdn('/assets/img/bg2.jpg')}}')">
        <div>
            @if (session('status'))
                <div class="alert alert-success">
                    <a href="#" class="close" data-dismiss="alert">&times;</a>
                    <strong>通知：</strong>{{session('status')}}
                </div>
            @endif

            @if (session('_error'))
                <div class="alert alert-danger">
                    <a href="#" class="close" data-dismiss="alert">&times;</a>
                    <strong>通知：</strong>{{session('_error')}}
                </div>
            @endif
            <div class="font p-15">
                <h3 class="div-titel text-center">登录</h3>
                <form method="post" action="{{url('/login')}}" class="form-horizontal" role="form">
                    {{csrf_field()}}
                    <div class="form-group">
                        <div class="col-sm-12">
                            <input name="email" type="text" class="form-control" placeholder="邮箱" required value="{{old('email')}}">
                            @if ($errors->has('email'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('email') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-12">
                            <input name="password" type="password" class="form-control" placeholder="密码" required>
                            @if ($errors->has('password'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('password') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-4 col-sm-4 col-xs-4">
                            <div class="checkbox" style="padding-left: 0">
                                <label>
                                    <input name="remember" type="checkbox" class="checkbox-danger" checked="checked">
                                    <span class="text">记住我</span>
                                </label>
                            </div>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-success btn-lg col-md-12" style="border-radius: 0">登录</button>
                    <a href="{{url('/steam/login')}}" class="btn btn-info btn-lg col-md-12" style="border-radius: 0; margin-top: 10px"><i class="fa fa-steam"></i>Steam登录</a>
                    <a href="{{url('/steam/register')}}" class="btn btn-danger btn-lg col-md-12" style="border-radius: 0; margin-top: 10px">注册</a>
                    <a href="{{url('/password/reset')}}" class="btn btn-warning btn-lg col-md-12" style="border-radius: 0; margin-top: 10px">忘记密码?</a>
                </form>
            </div>
        </div>
    </div>
    @include('include.bottom.info')
@endsection

@section('js')
@endsection
